import Vue from "vue";
import {
  Avatar,
  Layout,
  Select,
  Spin,
  Button,
  Breadcrumb,
  FormModel,
  Icon,
  Input,
  InputNumber,
  Menu,
  Table,
  Tree,
  Divider,
  DatePicker,
  Transfer,
  Popover,
  Modal,
  message,
  Checkbox,
  Row,
  Col,
  Radio,
  Slider,
  Switch,
  Tabs,
  TimePicker,
  Tooltip,
  AutoComplete,
  Alert,
  Popconfirm,
  Pagination,
  ConfigProvider,
  Tag,
  BackTop,
  Cascader,
  PageHeader,
  Upload,
  Progress,
  Empty,
  Steps
} from "ant-design-vue";

Vue.use(Avatar);
Vue.use(Layout);
Vue.use(Select);
Vue.use(Spin);
Vue.use(FormModel);
Vue.use(Input);
Vue.use(Button);
Vue.use(Breadcrumb);
Vue.use(InputNumber);
Vue.use(Menu);
Vue.use(Table);
Vue.use(Tree);
Vue.use(Cascader);
Vue.use(Divider);
Vue.use(DatePicker);
Vue.use(Transfer);
Vue.use(Popover);
Vue.use(Checkbox);
Vue.use(Row);
Vue.use(Col);
Vue.use(Radio);
Vue.use(Slider);
Vue.use(Switch);
Vue.use(Tabs);
Vue.use(TimePicker);
Vue.use(Tooltip);
Vue.use(AutoComplete);
Vue.use(Alert);
Vue.use(Popconfirm);
Vue.use(Pagination);
Vue.use(ConfigProvider);
Vue.use(Modal);
Vue.use(Tag);
Vue.use(Icon);
Vue.use(Empty);
Vue.use(PageHeader);
Vue.use(BackTop);
Vue.use(Upload);
Vue.use(Progress);
Vue.use(Steps);

message.config({
  maxCount: 1
});
Vue.prototype.$confirm = Modal.confirm;
Vue.prototype.$message = message;

// 自定义 iconfont 字体图标  https://www.iconfont.cn/
Vue.component(
  "ym-icon",
  Icon.createFromIconfontCN({
    scriptUrl: "//at.alicdn.com/t/font_1926515_9hvyv7fcoyv.js"
  })
);
